﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 流程执行模板
    /// </summary>
    class wf_action_temp
    {
        #region 数据表名称
        public static readonly string TableName = "wf_action_temp";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// 记录ID
            /// </summary>
            public static readonly string r_id = @"r_id";

            /// <summary>
            /// 流程类型ID
            /// </summary>
            public static readonly string n_type_id = @"n_type_id";

            /// <summary>
            /// 流程执行步骤索引
            /// </summary>
            public static readonly string act_idx = @"act_idx";

            /// <summary>
            /// 流程执行步骤标题
            /// </summary>
            public static readonly string act_title = @"act_title";

            /// <summary>
            /// 执行活动类型
            /// </summary>
            public static readonly string act_type = @"act_type";

            /// <summary>
            /// 执行当前活动步骤的用户所需的权限
            /// </summary>
            public static readonly string act_role = @"act_role";

            /// <summary>
            /// 记录是否有效
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 记录创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string r_id { get; set; }

        /// <summary>
        /// 流程类型
        /// </summary>
        public virtual wf_type wf_node_type { get; set; }


        /// <summary>
        /// 流程执行步骤索引
        /// </summary>
        public virtual int act_idx { get; set; }

        /// <summary>
        /// 流程执行步骤标题
        /// </summary>
        public virtual string act_title { get; set; }

        /// <summary>
        /// 执行活动类型：0、不需会签（多用户审核情况下，只要有一个用户审核，该活动即完成）；1、需要会签（多用户审核情况下，需要所有用户均审核通过后，该活动才完成）
        /// </summary>
        public virtual int act_type { get; set; }

        /// <summary>
        /// 执行当前活动步骤的用户所需的权限
        /// </summary>
        public virtual string act_role { get; set; }

        /// <summary>
        /// 记录是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        public virtual int create_date { get; set; }
        #endregion

        public wf_action_temp()
        {
            wf_node_type = new wf_type();
        }
    }
}
